<template>
  <!-- <el-button type="primary" size="default" :icon="Plus">主要按钮</el-button>
  <el-button type="primary" size="default" :icon="Edit">主要按钮</el-button>

  <el-pagination :page-sizes="[100, 200, 300, 400]" layout="total, sizes, prev, pager, next, jumper" :total="400" />
  <div class="box">
    <h1>我要搞定它！！！aa</h1>
  </div>
  <svg style="width:30px;height:30px">
    <use xlink:href="#icon-tip" fill="red"></use>
  </svg>
  <svg-icon name="home" color="green" width="24px" height="24"></svg-icon>
  <pagination></pagination>
  <Test></Test> -->
  <RouterView></RouterView>
</template>

<script setup lang="ts">
// import { Plus, Edit } from '@element-plus/icons-vue'
import Test from './components/Test.vue'
// import SvgIcon from '@/commponents/SvgIcon/index'
import {reqLogin} from "./api/user/index";
import request from './utils/request'
import { onMounted } from "vue";

onMounted(()=>{
  //  reqLogin({userName:'admin',password:'123456'})
  // request({
  //   url:'/user/login',
  //   method: 'POST',
  //   data:{
  //     userName:'addmin',
  //     password:'123456'
  //   }
  // }).then(res =>{
  //   console.log(res)
  // })
})
</script>

<style scoped lang="scss">
.box {
  width: 600px;
  height: 100px;
  background: black;

  h1 {
    color: $color;
  }
}
</style>
